package example;

/**
 * 西华代理
 *
 * @author zhang he qiang
 */
public class SgProxy  implements Specialty{
    private WySpecialty realSubject=new WySpecialty();
    public void display()
    {
        preRequest();
        realSubject.display();
        postRequest();
    }
    public void preRequest()
    {
        System.out.println("西华代理红花特产开始。");
    }
    public void postRequest()
    {
        System.out.println("西华代理红花特产结束。");
    }

}
